const path = require("path");
const fs = require("fs");
const filePath = path.resolve(__dirname, "index.tsx");
const content = fs.readFileSync(filePath, { encoding: "utf8" });
const dist = content.replace(/JC\("\w+?"\)/g, $1 => {
  const result = `Bi.${$1[4].toLowerCase()}${$1.substring(5, $1.length - 2)}`;
  console.log(result);
  return result;
});
fs.writeFileSync(filePath, dist, { encoding: "utf8" });
